FROM k8s-master.test.com:5000/nginx:latest

LABEL maintainer="Admin"

RUN mkdir -p /hashlake-ui/dist \
    /hashlake-ui/log/nginx

#ENV RUN_USER nginx
#ENV RUN_GROUP nginx
ENV DATA_DIR /hashlake-ui/dist
ENV LOG_DIR /hashlake-ui/log/nginx
#RUN chown nginx.nginx -R /hashlake-ui/log/nginx

ADD ./dist /hashlake-ui/dist
ADD ./default.conf /etc/nginx/conf.d/default.conf

EXPOSE 80
ENTRYPOINT nginx -g "daemon off;"
